<%--
  Created by IntelliJ IDEA.
  User: lining
  Date: 2017/3/28
  Time: 下午4:38
  To change this template use File | Settings | File Templates.
--%>
<%@ include file="common/taglib.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
    <%@ include file="common/head.jsp" %>
</head>
<body>
<h2>新闻列表</h2>
<table class="table table-hover">
  <thead>
  <tr>
    <th>序号</th>
    <th>标题</th>
    <th>创建时间</th>
    <th>明细</th>
  </tr>
  </thead>
  <tbody>
  <c:forEach items="${list}" var="news" varStatus="status">
    <tr>
      <td>${status.index + 1}</td>
      <td>${news.title}</td>
      <td><fmt:formatDate value="${news.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
      <td><a href="/News/${news.newsId}/detail" >明细</a></td>
    </tr>
  </c:forEach>
  </tbody>
</table>
</div>



</body>
</html>
